#!/usr/bin/python3
# -*- coding:utf-8 -*-
"""
Student类
"""


class Student(object):

    def __init__(self, name, score):
        self.name = name
        self.score = score

    def get_grade(self):
        if self.score > 100 or self.score < 0:
            raise ValueError('score is wrong!')
        if 100 >= self.score >= 80:
            return 'A'
        if 80 > self.score >= 60:
            return 'B'
        return 'C'
